<script>
	$(function() {		
		
		$(".article_footer a.icon_button.modify").click(function() {	
			href = $(this).attr("href");
			title = '{result->b_subject} 게시물 수정';
			
			
			loadDialogForm(href, null, title, 800, 710, null, 'modify');
			
			return false;
		});
		
		
		// 조회수 Up 시켜야됨.
		{? is_hit}
			var hit_count = $(".list_container a.article span.hit_count_{result->b_seq}");
			
			if(hit_count.length > 0) {
				hit_count.text(parseInt(hit_count.text())+1);
			}
		{/}
	});
</script>
<div class="article_header">
	<div class="subject">
		<h4>{? binfo->ba_category}[{result->bc_name}]{/} {result->b_subject}</h4>
		<div class="subject_info">
			<span class="{result->ba_id}">{result->ba_id}</span>
			<span class="date">{result->date}</span>
			<span class="date">조회수 : {result->b_count}</span>
		</div>
	</div>
	<div class="close">
		<button type="button">닫기</button>
	</div>
</div>

<div class="article">
	<div class="content">
		{result->b_content}
		
		{? binfo->ba_attach && attach->is}	
			<ul class="attach">
			{@ attach->list}
				<li>
					{.value_->a_filename}
				</li>
			{/}
			</ul>			
		{/}
	</div>
	
	
</div>

<div class="article_footer">
	<div class="btn_left">
		<a href="{action}/view/{binfo->ba_id}/{result->b_seq}" class="icon_button refresh" title="새로고침">새로고침</a>
	</div>
	
	<div class="next_prev">
		<a href="#" class="icon_button prev_article">이전글</a>
		<a href="#" class="icon_button next_article">다음글</a>
	</div>
	
	
	<div class="btn_right">
		<a href="{action}/modify/{result->ba_id}/{result->b_seq}" class="icon_button modify" title="수정">수정</a>
		<a href="{action}/doDelete/{result->ba_id}/{result->b_seq}" class="icon_button delete" title="삭제">삭제</a>
	</div>
</div>
